<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>精羽门-羽毛球爱好者的江湖</title>
    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/Css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Css/startbbs.css" rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/Css/allan.css">

</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">精羽门</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li id='nav_index'><a href="/">首页</a></li>
        <li id='nav_about'><a href="<?php echo U('Index/about');?>">关于</a></li>
        <li id="nav_act_add"><a href="<?php echo U('Activity/add');?>">发起活动</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <?php if ($_SESSION['uname']) : ?>
        	<li><a href='#'>欢迎<?php echo $_SESSION['uname']; ?></a></li>
        	<li><a href='<?php echo U('Login/logout');?>'>注销</a></li>
        <?php else : ?>
        	<li id='nav_login'><a href='<?php echo U('Login/login');?>'>登录</a></li>
			<li id='nav_reg'><a href='<?php echo U('Login/register');?>'>注册</a></li>
		<?php endif; ?>	
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</div>
	  <div class="container">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-md-8">
          <div class="panel panel-default">
            <div class="panel-heading">羽毛球活动
              <a href="#" id="more_act">
              </a>
            </div>
            <table class="table">
              <thead>
                <tr>
                  <th>活动名称</th>
                  <th>活动时间</th>
                  <th>活动地点</th>
                  <th>限报人数</th>
                </tr>
              </thead>
              <tbody>
              	<?php if(is_array($badmintonList)): foreach($badmintonList as $key=>$vo): ?><tr>
	                  <td><a href="<?php echo U('Activity/view',array('id'=>$vo['id']));?>"><?php echo ($vo["title"]); ?></a></td>
	                  <td><?php echo ($vo["startTime"]); ?>-<?php echo ($vo["endTime"]); ?></td>
	                  <td><?php echo ($vo["address"]); ?></td>
	                  <td><?php echo ($vo["maxNum"]); ?></td>
	                </tr><?php endforeach; endif; ?>	
              </tbody>
            </table>
          </div> 
          <div class="panel panel-default">
            <div class="panel-heading">其他活动
              <a href="#" id="more_act">
              </a>
            </div>
            <table class="table">
              <thead>
                <tr>
                  <th>活动名称</th>
                  <th>活动时间</th>
                  <th>活动地点</th>
                  <th>限报人数</th>
                </tr>
              </thead>
              <tbody>
              	<?php if(is_array($swimmingList)): foreach($swimmingList as $key=>$vo): ?><tr>
	                  <td><a href="<?php echo U('Activity/view',array('id'=>$vo['id']));?>"><?php echo ($vo["title"]); ?></a></td>
	                  <td><?php echo ($vo["startTime"]); ?>-<?php echo ($vo["endTime"]); ?></td>
	                  <td><?php echo ($vo["address"]); ?></td>
	                  <td><?php echo ($vo["maxNum"]); ?></td>
	                </tr><?php endforeach; endif; ?>	
              </tbody>
            </table>
          </div>     
        </div>
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading">使用说明</div>
            <div class="panel-body">
              <p>网站改版后将更方便手机使用，请记住我们的网址。
              	  </br>使用电脑的用户，推荐您使用谷歌Chrome浏览器或者火狐。
              	  </br>IE9以下的老版本浏览器可能会有不适</p>
            </div>
          </div>
        </div>
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading">场馆信息</div>
            <div class="panel-body">
              <h5><b>菁英公寓羽毛球馆</b></h5>
              <h5>电话：62899984</h5>
              <h5><b>纳米园羽毛球馆</b></h5>
              <h5>电话：62951115</h5>
              <h5><b>独墅湖体育馆</b></h5>
              <h5>电话：62602320 62602324</h5>
            </div>
          </div>
        </div>
      </div>
		<hr>
<footer>
  <p>AntsClub 2013-2014</p>
</footer>
    </div> <!-- /container -->
	<script src="__PUBLIC__/Js/jquery-1.8.0.min.js"></script>
<script src="__PUBLIC__/Js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#nav_index').addClass('active');	
		});
	</script>
<!--

//-->
</script>
</body>
</html>